package com.xinruke.hostels.common.constants;

import com.google.common.collect.Maps;

import java.util.HashMap;
import java.util.Map;


/**
 * @ClassName BusiConstant
 * @Description 业务静态常量类
 * @Author Chenry
 * @Date 2019/06/23
 * @Version 1.0
 **/
public class BusiConstant {

    // 删除标识，0不删除
    public static final byte DELFLAG_0 = 0;

    // 删除标识，1删除
    public static final byte DELFLAG_1 = 1;

    // 1 新增；
    public static final int RELEASE_WALLET_STATE_ADD = 1;
    // 2 割接
    public static final int RELEASE_WALLET_STATE_CUTOVER = 2;

    public static final Map IDENTITY_MAP = Maps.newConcurrentMap();

    public static final String API_NAME_GET_EXCHANGE_AMOUNT_FROM_ZRYP = "兑换GDT查询接口";
    public static final String API_NAME_EXCHANGE_FROZEN_GDT = "兑换GDT结果同步接口";
    public static final String API_NAME_NODE_UPGRADE = "节点关系变更";
    public static final String API_NAME_IMPORT_CUSTOMER_IDENTITY = "新增节点数据接口";
    public static final String API_NAME_CHANGE_NODE_RELATION = "节点关系变更接口";
    public static final String API_NAME_CHECK_EXCHANGE_STOCK_QUALIFICATION = "查询股权兑换资格接口";
    public static final String API_NAME_SYNC_EXCHANGE_STOCK_STATE = "同步兑换股权状态接口";

    public static final String ORDER_PREFIX_ZRYP = "ZRYP";


    public static final HashMap<Integer, Object> REWARD_RELEASE_STATUS = new HashMap();

    static {
        REWARD_RELEASE_STATUS.put(0, "未导入");
        REWARD_RELEASE_STATUS.put(1, "验证通过");
        REWARD_RELEASE_STATUS.put(2, "已导入释放");
    }

    //组织结构root节点id
    public static final Integer ORG_ROOT_ID = 0;


    //会议预订允许时间间隔，小时为单位
    public static final int ALLOWTIME = 2;


    public static final Integer SUCCESS = 0;//请求成功
    public static final Integer FAILED = -1; //请求失败

    public static final String SUCCESS_MSG = "success";
    public static final String FAILED_MSG = "failed";


    /**
     * 会议需求标识:1会议；2会议+用餐；3会议+住宿；4会议+住宿+用餐
     */
    public static final byte HUIYIXUQIUDAN_BIAOSHI_1 = 1;
    public static final byte HUIYIXUQIUDAN_BIAOSHI_2 = 2;
    public static final byte HUIYIXUQIUDAN_BIAOSHI_3 = 3;
    public static final byte HUIYIXUQIUDAN_BIAOSHI_4 = 4;


    public static final HashMap<String, String> YONGCAN_LEIBIE = new HashMap();
    static {
        YONGCAN_LEIBIE.put("1", "07:00");
        YONGCAN_LEIBIE.put("2", "11:00");
        YONGCAN_LEIBIE.put("3", "18:00");
    }

}
